package com.yishe.constant;

import lombok.Getter;
import lombok.Setter;

/**
 * @author : chusifeng
 * @version :1.0
 * @date :Create in 2021/4/13 17:40
 * @description: 微信常量
 * @package com.yishe.constant
 * @className WxConstants
 */
public class WxConstants {

    /**
     * 提示语
     */
    public static final String PHONEERROR =  "该手机号已被注册，请重新输入！";

    public static final String EMPTY="";

    /**
     * 签到--是
     */
    public static final String IS_SIGNED="1";
    public static final String NOT_SIGNED="0";

    /**
     * 连续签到奖励类型//积分1//优惠券2
     */
    public static final String REWARD_1="1";
    public static final String REWARD_2="2";

    /**
     * 券状态1可用 2核销 3过期
     */
    public static final String COUPONSTATUS_USE="1";
    public static final String COUPONSTATUS_USED="2";
    public static final String COUPONSTATUS_EXPIRE="3";

    @Getter
    public enum MsgType{
        /**
         * 事件
         */
        event("event"),
        /**
         * 事件
         */
        view("VIEW"),
        /**
         * 文本
         */
        text("text"),
        /**
         * 图文
         */
        news("news"),
        /**
         * 图片
         */
        image("image"),

        voice("voice"),

        video("video"),

        location("location"),
        /**
         * 订阅
         */
        subscribe("subscribe"),
        /**
         * 取消订阅
         */
        unsubscribe("unsubscribe");
        private String code ;

        private MsgType(String code) {
            this.code = code;
        }
    }
    /**
     * 会员等级
     */
    @Getter
    public enum MemberType{
        BRONZE("1","青铜"),
        GOLD("2","黄金"),
        PLATINUM("3","铂金"),
        DIAMONDS("4","钻石"),
        SUPREME("5","至尊");

        private String typeCode;
        private String typeDesc;

        private MemberType(String typeCode, String typeDesc) {
            this.typeCode = typeCode;
            this.typeDesc = typeDesc;
        }

    }
}
